package com.mingqijia.gassafety.db.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.mingqijia.gassafety.db.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 运行策略报告
 * </p>
 *
 * @author fei.zhang
 * @since 2023-12-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_gss_running_strategy_report")
@ApiModel(value="RunningStrategyReport对象", description="运行策略报告")
public class RunningStrategyReport extends BaseEntity {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "设备号")
    @TableField("iMEI")
    private String iMEI;

    @ApiModelProperty(value = "报告日期 2023-12")
    @TableField("report_date")
    private String reportDate;

    @ApiModelProperty(value = "客户id")
    @TableField("consumer_id")
    private Integer consumerId;

    @ApiModelProperty(value = "设备状态：0无离线，无泄漏报警 1无离线，有泄漏报警（已处理）2 无离线，有泄漏报警（未处理）3有离线，有泄漏报警（已处理）4有离线，有泄漏报警（未处理） 5有离线，无泄漏报警")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "报警表主键，；号隔开")
    @TableField("alarm_ids")
    private String alarmIds;

    @ApiModelProperty(value = "报警次数")
    @TableField("alarm_number")
    private Integer alarmNumber;

    @ApiModelProperty(value = "未处理次数")
    @TableField("undisposed_number")
    private Integer undisposedNumber;

    @ApiModelProperty(value = "离线时间")
    @TableField("offline_time")
    private String offlineTime;

    @ApiModelProperty(value = "天数")
    @TableField("days")
    private Integer days;

    @ApiModelProperty(value = "0启用 1禁用 2失效")
    @TableField("is_disabled")
    private Integer isDisabled;

    @ApiModelProperty(value = "备注说明")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "企业编号")
    @TableField("sp_id")
    private String spId;


}
